package com.glink.manage.vo.person;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.glink.common.serializer.JsonDate3DeSerializer;
import com.glink.common.serializer.JsonDate3Serializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
* @author  qiushaoshan
* @since 2025-01-13
*/
@ApiModel(value="CertPageVO对象", description="证件查询-人员和车辆")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CertificatePageVO implements Serializable {

    private static final long serialVersionUID = 490692791659514639L;

    @ApiModelProperty(value = "主键ID；人员ID或车辆ID")
    private String objId;
    
    @ApiModelProperty(value = "数据类型；ApprovalFormType,1人员；2车辆")
    private String type;

    @ApiModelProperty(value = "姓名；证件人姓名或车主")
    private String name;

    @ApiModelProperty(value = "用户性别")
    private String sex;
    
    @ApiModelProperty(value = "年龄")
    private String age;

    @ApiModelProperty(value = "生日")
    @JsonSerialize(using = JsonDate3Serializer.class)
    @JsonDeserialize(using = JsonDate3DeSerializer.class)
    private Date birth;

    @ApiModelProperty(value = "证件号：身份证号或车牌号")
    private String credentialNo;
    
    @ApiModelProperty(value = "所属单位")
    private String orgId;
    
    @ApiModelProperty(value = "所属单位名称")
    private String orgName;

    @ApiModelProperty(value = "车辆类型；CarType")
    private String carType;
    
    @ApiModelProperty(value = "是否黑名单；0否，1是")
    private String ifBlacklist;

    @ApiModelProperty(value = "头像")
    private String profilePicture;

    @ApiModelProperty(value = "健康证")
    private String healthCert;

    @ApiModelProperty(value = "证书列表")
    private List<CertificateDetailListVO> certList;
}
